﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Visifire Test Page</title>
        <script type="text/javascript" src="../Visifire.js"></script>
    <style type="text/css">
        #button1
        {
            width: 313px;
        }
    </style>
    
</head>
    
<body style="background-color:Gray;">
    
    <div id="VisifireChart0">
        <script type="text/javascript">


            var chartXml = '<vc:Chart xmlns:vc="clr-namespace:Visifire.Charts;assembly=SLVisifire.Charts" Width="500" Height="300" Theme="Theme1" AnimationEnabled="true" Bevel="True" BorderThickness="2" BorderBrush="Black" View3D="False">'
                           + '     <vc:Chart.Titles>'
                           + '         <vc:Title Text="Athens 2004 Olympics" FontSize="14"/>'
                           + '     </vc:Chart.Titles>'

                           + '     <vc:Chart.Series>'
                           + '         <vc:DataSeries RenderAs="Line" LabelEnabled="True">'
                           + '             <vc:DataSeries.DataPoints>'
                           + '                 <vc:DataPoint AxisXLabel="USA" YValue="35"/>'
                           + '                 <vc:DataPoint AxisXLabel="China" YValue="32"/>'
                           + '                 <vc:DataPoint AxisXLabel="Russia" YValue="27"/>'
                           + '                 <vc:DataPoint AxisXLabel="Australia" YValue="17"/>'
                           + '                 <vc:DataPoint AxisXLabel="Japan" YValue="16"/>'
                           + '             </vc:DataSeries.DataPoints>'
                           + '         </vc:DataSeries>'
                           + '     </vc:Chart.Series>'
                           + ' </vc:Chart>';


            var vChart1;
            // Create Visifire object
            vChart1 = new Visifire('../ClientBin/SL.Visifire.Charts.xap', "MyChart1", 500, 300);
            
            // Render chart
            vChart1.render("VisifireChart0");


            function ButtonClick() {
                vChart1.setDataXml(chartXml);
                vChart1.render("VisifireChart0");
            };
            
        </script>
    </div>
    <button id="button1" type="button" onclick="ButtonClick()">
        Click here set new XML</button>
</body>

</html>
